layui.use(['laydate','jquery'], function(){
    var laydate = layui.laydate,
        $ = layui.jquery;


    laydate.render({
        elem: '#test1',
        type: 'date',
    });
    
    $("#findBuild").click(function () {
        $("#form").attr("action","/distr-building/findBuild");
    });

    $("#addBuild").click(function () {
        $("#form").attr("action","/distr-building/addBuild");
    });


});